<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>个人中心</title>
    <link rel="stylesheet"  href="src/css/base.css?__version=9.4">
    <link rel="stylesheet"  href="src/css/pages.css?__version=9.4">
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?8ed2efe5b24e14f351f4d88ba2eb3462";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
    </script>
</head>
<body>
    <div class="init_content" style="display: none;">
    <div class="warp personal-warp" style="padding-bottom:30px;">
        <section class="user-info">
            <header class="fixed_top"><a href="/" class="back"></a><span>个人中心</span></header>
            <div>
                <img id="headimg_block" src="src/img/1.jpg" onerror="this.src='src/img/1.jpg'" class="headerimg">
                <div class="msg">
                    <h2 class="text-beyond name" id="username_block">用户名</h2>
                    <div class="balance">
                        <span id="myid" style="margin-right:20px;"></span>
                        <span class="text-beyond" id="coinbalance_block"></span>
                        <img src="src/img/shouyejinbi.png">
                    </div>
                </div>
            </div>
        </section>

        <ul class="tool-list">
            <li class="item">
                <a href="/recharge.html" class="flex">
                    <img class="icon" src="src/img/jinbichongzhi.png">
                    <span class="text-beyond align-left tag">充值中心</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <li class="item sysmsg">
                <a href="/message.html" class="flex">
                    <img class="icon" src="src/img/xitongxiaoxi.png">
                    <span class="text-beyond align-left tag">消息中心</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <li class="item item-top">
                <a href="/consumerCenter.html" class="flex">
                    <img class="icon" src="src/img/xiaofeijilu.png">
                    <span class="text-beyond align-left tag">消费记录</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>

            <li class="item item-bottom">
                <a href="/backpack.html" class="flex">
                    <img class="icon" src="src/img/beibaojilu.png">
                    <span class="text-beyond align-left tag">背包记录</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <li class="item">
                <a href="/myorder.html" class="flex">
                    <img class="icon" src="src/img/wodedingdan.png">
                    <span class="text-beyond align-left tag">我的订单</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <li class="item item-top">
                <a href="/myred.html" class="flex">
                    <img class="icon" src="src/img/myred.png">
                    <span class="text-beyond align-left tag">我的红包</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <li class="item item-bottom">
                <a href="/invitation.html" class="flex">
                    <img class="icon" src="src/img/invitation.jpg">
                    <span class="text-beyond align-left tag">邀请好友</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <!-- <li class="item">
                <a href="/inputcode.html" class="flex">
                    <img class="icon" src="src/img/inputcode.jpg">
                    <span class="text-beyond align-left tag">输入邀请码</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li> -->
            <li class="item item-top">
                <a href="/problem.html" class="flex">
                    <img class="icon" src="src/img/yijianfankui.png">
                    <span class="text-beyond align-left tag">问题反馈</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
            <li class="item">
                <a onclick="openKf()" class="flex">
                    <img class="icon" src="src/img/zaixiankefu.jpg">
                    <span class="text-beyond align-left tag">在线客服</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li>
<!--             <li class="item item-bottom">
                <a href="#" class="flex">
                    <span class="text-beyond align-left tag">关于我们</span>
                    <img class="icon-next align-right" src="src/img/rightrow.png">
                </a>
            </li> -->
        </ul>
        <a href="javascript:logout();" class="logout">退出当前账号</a>
    </div>
</div>
<div class="init_loading">
    <img src="src/img/page_loading.gif?v=1">
</div>
</body>

<script type="text/javascript" src="src/js/jquery-1.10.1.min.js?__version=9.4"></script>
<script type="text/javascript" src="src/js/rem.js?__version=9.4"></script>
<script type="text/javascript" src="src/js/dropload.js?__version=9.4"></script>
<script type="text/javascript" src="src/js/init.js?__version=9.4"></script>
<script src="https://qiyukf.com/script/3399c2505ff55447138e2b3b6dd24fe2.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="/src/js/share.js?23456"></script>
<script type="text/javascript">
    $(document).ready(function(){
        checkUserLogin();
        isNewMessage(".personal-warp .tool-list .item");
        fetchData("/OpenAPI/v1/user/info",{"token":token},function(data){
            if(data.error){
                logout();
            }else{
                $("#myid").html("ID："+cookieGet("uid"))
                $("#username_block").html(data.nickname);
                $("#coinbalance_block").html("余额：<small>"+parseInt(data.coinbalance)+"</small>");
                $("#headimg_block").attr("src",data.avatar);
            }
            
        })
        

    });
    window.openKf = function(){
        //ysf.open();
        location.href = ysf.url();
    }
</script>

</html>
